<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class InitUpdate73 extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('resale_records', function (Blueprint $table) {

            $table->char('sid', 10)->nullable()->index()->comment('短id');

            $table->integer('tenant_id')->nullable()->index()->comment('集市商户id');

            $table->integer('product_total')->default(0)->index()->comment('商品数量');

            $table->integer('advise_money_price')->nullable()->comment('建议人民币价格');
            $table->integer('advise_score_price')->nullable()->comment('建议积分价格');

            $table->boolean('is_allow_fast_match')->default(0)->index()->comment('允许快速匹配');

            $table->integer('complete_type')->nullable()->index()->comment('成交方式 1为用户自主成交  2为管理后台购买  3为自动匹配成交');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
